home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / answers / mailpaths / part1 < prev    next >
Encoding:
Internet Message Format  |  1993-04-26  |  7.6 KB

  1. Path: senator-bedfellow.mit.edu!enterpoop.mit.edu!usc!howland.reston.ans.net!gatech!purdue!not-for-mail
  2. From: spaf@cs.purdue.edu (Gene Spafford)
  3. Newsgroups: news.lists,news.admin.misc,news.answers
  4. Subject: How to Construct the Mailpaths File
  5. Supersedes: <spaf-mailpaths_728545605@cs.purdue.edu>
  6. Followup-To: news.admin.misc
  7. Date: 26 Apr 1993 00:02:17 -0500
  8. Organization: Dept. of Computer Sciences, Purdue Univ.
  9. Lines: 141
  10. Approved: spaf@cs.purdue.edu
  11. Expires: 25 Jun 93 17:02:17 GMT
  12. Message-ID: <spaf-mailpaths_735800537@cs.purdue.edu>
  13. NNTP-Posting-Host: ector.cs.purdue.edu
  14. Xref: senator-bedfellow.mit.edu news.lists:2496 news.admin.misc:2541 news.answers:7893
  15.  
  16. Archive-name: mailpaths/part1
  17. Original-author: Gene Spafford (spaf@cs.purdue.edu)
  18. Comment: enhanced & edited until 5/93 by spaf@cs.purdue.edu (Gene Spafford)
  19. Last-change: 25 Apr 1993 by spaf@cs.purdue.edu (Gene Spafford)
  20.  
  21. News software after B-news version 2.10 -- including C news and INN --
  22. has been designed to make it simpler to submit articles to moderated
  23. newsgroups and to reply via mail to posted articles.  For these
  24. functions to work, the file "mailpaths" must exist in the news library
  25. and contain current information.  This file describes the syntax of
  26. the contents of the file and how to construct it for your site.
  27.  
  28. Note that the method described below works for most of the popular
  29. news posting software packages in use.  Some systems may not work in
  30. precisely the manner described here.  In particular, some user-agent
  31. programs may consult a file of moderator addresses directly.  The
  32. system news administrator should consult the documentation and man
  33. pages to determine if this description applies to the local
  34. configuration and modify it accordiningly.
  35.  
  36. Syntax
  37. ------
  38. All lines in the file consist of a keyword followed by whitespace,
  39. followed by a printf-style format string which is used to encode a mail
  40. address.  The format string should be constructed so that there is a
  41. single "%s" in the field, and other information necessary to construct
  42. a valid address to the appropriate site (see below).
  43.  
  44. The keyword field consists of either the word "internet", the word
  45. "backbone", or some newsgroup pattern.  These are examined by the
  46. software to determine which format-string to use.  Note that the FIRST
  47. appropriate line matched is the one used -- thus, the "backbone"
  48. keyword line should be placed last in the line if regional or local
  49. moderated groups are supported.
  50.  
  51. Also note that the match software quits if it runs out of newsgroup
  52. pattern, and if the pattern present matches the newsgroup.  Thus,
  53. having the entries:
  54.     comp.foo        foo@nowhere.edu
  55.     comp.foo.bar    bar@someplace.org
  56. would always send mail to the moderator of "comp.foo" and not to the
  57. moderator of "comp.foo.bar", no matter which of the two newsgroups was
  58. specified!   For proper operation, you would need to list them thusly:
  59.     comp.foo.bar    bar@someplace.org
  60.     comp.foo        foo@nowhere.edu
  61.  
  62. Addresses that end up with both "!" and "@" symbols in the resulting
  63. address get converted so that only "!" symbols appear in the final
  64. address.  An address of the form "foo!bar!baz@barf" will get converted
  65. to "foo!bar!barf!baz" and then mailed.  This should work properly, for
  66. "dumb" mailers but you should test it to make sure; "smart" mailers
  67. should have the format fields encoded as a simple "%s". Note that *any*
  68. address with more than a single "@" in it is illegal.
  69.  
  70. Submissions to moderated groups
  71. -------------------------------
  72. When you attempt to post to a moderated newsgroup (indicated by the
  73. letter "m" in the 4th field of the "active" file for that group), 
  74. the action of "inews" is to mail the submission to the moderator.
  75. This is done by searching through "mailpaths" file for a keyword
  76. matching the newgroup being posted to, or, by default, the keyword
  77. "backbone".  Matching occurs as in the "sys" file -- thus,
  78. "world" and "all" will also match everything, while "news" or 
  79. "news.all" will only match articles posted in the "news" category.
  80. This feature can be used to support local moderated groups.
  81.  
  82. Once a line has been matched, the name of the moderated group is
  83. transformed into an address.  This is done by first turning all the
  84. imbedded periods within the newsgroup name into hyphens (e.g.,
  85. "news.lists" becomes "news-lists") because many mailers mishandle
  86. addresses with periods in the username (periods are supposed to be
  87. delimiters only in the host/domain part of RFC822 addresses, but some
  88. mailers "overreact").  Next, the transformed group name is encoded into
  89. an address using the format-string present on the line matched from
  90. "mailpaths" and the article is mailed.  Thus, a posting to "news.lists"
  91. from a site with the line
  92.     backbone        emory!gatech!%s 
  93. in the mailpaths file would have the article mailed to
  94. "emory!gatech!news-lists".  Likewise, a line like
  95.     backbone    %s@gatech.edu
  96. would result in the article being mailed to "news-lists@gatech.edu".
  97. To make the mechanism for moderated postings simpler, a subset of the 
  98. best-connected sites (plus some others) have committed to keeping a complete
  99. up-to-date set of mail aliases for the moderated groups.  Therefore, to
  100. build this line in your "mailpaths" file, you need only construct
  101. an address to get the mail to one of these sites.  In turn, once the
  102. submission reaches that site, it will be forwarded on to the
  103. appropriate moderator's mailbox.
  104.  
  105. The sites currently maintaining these lists are given in the following
  106. list.  Pick the one that is "closest" to your site and use it in your
  107. "backbone" format string:
  108.  
  109.     ames.arc.nasa.gov       beaver.cs.washington.edu  cis.ohio-state.edu
  110.     decuac.dec.com          decwrl.dec.com          eddie.mit.edu
  111.     linus.b.mitre.org       math.waterloo.edu        pipex.co.uk *
  112.     mcnc.org                ncar.ucar.edu           rutgers.edu
  113.     tektronix.tek.com       ucbvax.berkeley.edu     ucsd.edu
  114.     uflorida.cis.ufl.edu    uunet.uu.net            wrdis01.af.mil
  115.  
  116. (* pipex.co.uk is also pipex.net.  Sites served by EUnet have other
  117. arrangements, and non-EUnet sites may forward through pipex.)
  118.  
  119. Internet Mail
  120. -------------
  121. If you define the "INTERNET" flag when you build 2.11 news, the
  122. software will use the internet-style "From:" header when addressing
  123. replies mailed to postings.  If your mailer does not have this capability,
  124. you can still (possibly) achieve the same thing by defining the
  125. "internet" line in your "mailpaths" file to forward such mail to
  126. a host that does have a mailer which understands internet-style addresses.
  127.  
  128. The format of this line is very similar to the "backbone" line.  As an
  129. example, consider:
  130.     internet    emory!gatech!mcnc!%s
  131. Thus, if "INTERNET" was defined when this version of news was built,
  132. any reply to a news article would not travel along the "Path:", but
  133. would instead be sent to "mcnc" for interpretation and remailing.
  134. For example, to reply to this article, the mail would be sent to
  135. "emory!gatech!mcnc!spaf@cs.purdue.edu"  ->
  136. "emory!gatech!mcnc!cs.purdue.edu!spaf"
  137.  
  138. Note:  This is being provided as a service to sites which do not
  139. have routing mailers or which have difficulty replying to articles.
  140. It is *NOT* intended for everyone to pass mail to other sites to send.
  141. Excessive use of this feature may result in severe problems for
  142. the sites doing the relaying, so please simply define this field to
  143. be "%s" if your mailer understands domain-style (internet-style)
  144. addressing.
  145.  
  146. The following sites will accept internet-format mail for forwarding:
  147.  
  148.     beaver.cs.washington.edu    decuac.dec.com  kddlab.kddlabs.co.jp
  149.     math.waterloo.edu           mcnc.org        ucsd.edu
  150.     uunet.uu.net
  151.  
  152. -- 
  153. Gene Spafford
  154. Software Engineering Research Center & Dept. of Computer Sciences
  155. Purdue University, W. Lafayette IN 47907-1398
  156. Internet:  spaf@cs.purdue.edu    phone:  (317) 494-7825
  157.